package com.eastfair.common.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.core.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 系统附件表
 * </p>
 *
 * @author clm
 * @since 2022-06-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AttachmentFileDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;
    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 系统code
     */
    @ApiModelProperty(value = "系统code")
    @Size(max = 20, message = "系统code长度不能超过20")
    private String systemCode;
    /**
     * 客户id，线索id，联系人id，场地id
     */
    @ApiModelProperty(value = "客户id，线索id，联系人id，场地id")
    private Long businessId;
    /**
     * 模块名(枚举维护)
     */
    @ApiModelProperty(value = "模块名(枚举维护)")
    @Size(max = 255, message = "模块名(枚举维护)长度不能超过255")
    private String businessType;
    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    @Size(max = 64, message = "附件名称长度不能超过64")
    private String attachmentName;
    /**
     * 附件格式
     */
    @ApiModelProperty(value = "附件格式")
    @Size(max = 10, message = "附件格式长度不能超过10")
    private String attachmentSubfix;

    /**
     * 附件大小(单位kb)
     */
    @ApiModelProperty(value = "附件大小(单位kb)")
    @Size(max = 20, message = "附件大小(单位kb)长度不能超过20")
    private Long attachmentSize;

    /**
     * 附件地址
     */
    @ApiModelProperty(value = "附件地址")
    @Size(max = 255, message = "附件地址长度不能超过255")
    private String attachmentUrl;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;
    /**
     * 业务ID列表
     */
    @ApiModelProperty(value = "业务ID列表")
    private List<Long> businessIdList;
}
